package tw.stock;

import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;

public class UpdateStockService extends IntentService {		
	
	boolean IsLockedEnabled()
    {
    	String strOptionKeyName = "IsLocked";
    	SharedPreferences settings = getSharedPreferences("status", 0);
        boolean bEnable = settings.getBoolean(strOptionKeyName, false);
        return bEnable;
    }

	public UpdateStockService() {
		super("AppWidget$UpdateService");
	}

	@Override
    public void onStart(Intent intent, int startId) {
        super.onStart(intent, startId);
    }
	
	@Override
	public void onDestroy ()
	{
		Log.d("DEBUG","IntentService  onDestroy");
		super.onDestroy();
	}

	@Override
	protected void onHandleIntent(Intent intent) {
		// TODO Auto-generated method stub
		
	}
}